<?php
/**
 * Created by PhpStorm.
 * User: W
 * Date: 2018/2/24
 * Time: 10:35
 */

namespace app\console\controller;

use app\common\controller\Console;

class Index extends Console {

    public function index() {
        $user_counts = model('Users')->count();
        $goods_counts = model('Goods')->count();
        $order_counts = model('Orders')->count();
        $this->assign([
            'user_counts' => $user_counts,
            'goods_counts' => $goods_counts,
            'order_counts' => $order_counts,
        ]);
        return $this->fetch();
    }

}
